package mvc;

import javax.swing.JFrame;
/**
 * 
 * @author Andrea Pasquali
 *
 */
public class CircleApplication {

		
	public static void main(String[] args) {
		
		Circle circle=new Circle(100, 100, 20);
		CirclePanel panel= new CirclePanel(circle);
		CircleController controller=new CircleController(circle);
		
		panel.addMouseListener(controller);
		panel.addMouseMotionListener(controller);
		
		JFrame frame=new JFrame();
		frame.setTitle("Circle Panel");
		frame.setSize(400, 400);
		frame.getContentPane().add(panel);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	
		frame.setVisible(true);
	}
}
